from selenium.webdriver.common.by import By

from Base.Base import Base
# 添加的定位
class Page1(Base):
    danjigame_loc=(By.XPATH,'//*[@id="app"]/div/section/aside/ul/li/ul/li[5]/a')
    def danjigame(self):
        self.click(self.danjigame_loc)

    addgame_loc=(By.XPATH,'//*[@id="app"]/div/section/section/main/form/div/div/div/div/button[2]/span')
    def addgame(self):
        self.click(self.addgame_loc)
    shuruname_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div[1]/div/div[1]/div/input')
    def shuruname(self,shuruname):
        self.send_keys(self.shuruname_loc,shuruname)
    shurudate_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div[2]/div/div[1]/div/input')
    def shurudate(self,shurudate):
        self.send_keys(self.shurudate_loc,shurudate)
    shurus_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div[3]/div/div/div/input')
    def shurus(self,shurus):
        self.send_keys(self.shurus_loc,shurus)
    tijiao_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/form/div[4]/div/button[1]/span')
    def tijiao(self):
        self.click(self.tijiao_loc)


